package com.vm.osm.business.service.impl;

import com.vm.osm.business.dao.OsmOrderItemConfigMapper;
import com.vm.osm.business.dto.rsp.orderItemConfig.InitItemSpec;
import com.vm.osm.business.entity.OsmOrderItemConfig;
import com.vm.osm.business.service.IOrderItemConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chenzui on 2018/2/2.
 */
@Service
public class OrderItemConfigServiceImpl implements IOrderItemConfigService {

    @Autowired
    private OsmOrderItemConfigMapper osmOrderItemConfigMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return osmOrderItemConfigMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(OsmOrderItemConfig record) {
        return osmOrderItemConfigMapper.insert(record);
    }

    @Override
    public int insertSelective(OsmOrderItemConfig record) {
        return osmOrderItemConfigMapper.insertSelective(record);
    }

    @Override
    public OsmOrderItemConfig selectByPrimaryKey(String id) {
        return osmOrderItemConfigMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(OsmOrderItemConfig record) {
        return osmOrderItemConfigMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OsmOrderItemConfig record) {
        return osmOrderItemConfigMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<InitItemSpec> queryOrderInitItems(String orderTypeId) {
        return osmOrderItemConfigMapper.queryOrderInitItems(orderTypeId);
    }
}
